<%@ page language="java" pageEncoding="UTF-8"%>
<%
	request.getSession().removeAttribute("admin");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>无标题页</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK 
href="images/public.css" type=text/css rel=stylesheet>
<LINK 
href="images/login.css" type=text/css rel=stylesheet>
<STYLE type=text/css>
</STYLE>
<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
<script type="text/javascript">
		   window.onload = function (){
			    document.form1.userName.focus();
		    }
			function loadimage(){
			    document.getElementById("randImage").src = "image.jsp?"+Math.random();
			 }
			function CheckForm() {
				var b=false;
				if(document.form1.userName.value==""){
					alert("用户名不能为空！");
					document.form1.userName.focus();
					b=false;
				}else if(document.form1.userPass.value==""){
					alert("密码不能为空！");
					document.form1.userPass.focus();
					b=false;
				}else if(document.form1.visidate.value==""){
					alert("请输入验证码！");
					document.form1.visidate.focus();
					b=false;
				}
				else{
					b=true;
				}
				return b;
			}
		</script>
</HEAD>
<BODY>
<DIV id=div1>
  <TABLE id=login height="100%" cellSpacing=0 cellPadding=0 width=800 
align=center>
    <TBODY>
      <TR id=main>
        <TD>
        <form name="form1" id="form1"  action="<%=request.getContextPath() %>/login.do" method="post" onsubmit="return CheckForm()">
			<input type="hidden" name="method" value="adminlogin" />
			<input type="hidden" name="qtdl" value="adlfqweir" />
          <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%">
            <TBODY>
              <TR>
                <TD colSpan=4>&nbsp;</TD>
              </TR>
              <TR height=30>
                <TD width=380>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
                <TD>&nbsp;</TD>
              </TR>
              <TR height=40>
                <TD rowSpan=4>&nbsp;</TD>
                <TD>用户名：</TD>
                <TD>
                <input id="admin" maxLength="20" name="userName" type="text" class="textbox">
                </TD>
                <TD width=120>&nbsp;</TD>
              </TR>
              <TR height=40>
                <TD>密　码：</TD>
                <TD>
                <input name="userPass" id="Password" maxLength=20 type="password" class="textbox">
                </TD>
                <TD width=120>&nbsp;</TD>
              </TR>
              <TR height=40>
                <TD>验证码：</TD>
                <TD vAlign=center colSpan=2>
                <input name="visidate" type="text" class="dl_box2" maxLength="4">
                    <img alt="看不清点我！" onclick="loadimage()" name="randImage" id="randImage" src="image.jsp" width="62" height="22" />
                 </TD>
              </TR>
              <TR height=40>
                <TD></TD>
                <TD align=right>
                  <INPUT id=btnLogin type=submit value=" 登 录 " name=btnLogin>
                </TD>
                <TD width=120>&nbsp;</TD>
              </TR>
              <TR height=110>
                <TD colSpan=4>&nbsp;</TD>
              </TR>
            </TBODY>
          </TABLE>
          </form>
        </TD>
      </TR>
      <TR id=root height=104>
        <TD>&nbsp;</TD>
      </TR>
    </TBODY>
  </TABLE>
</DIV>
<DIV id=div2 style="DISPLAY: none"></DIV>
</BODY>
<script type="text/javascript">
var message = '<%=session.getAttribute("message")%>';
if(message!=null && message!="null" && message !=""){
   alert(message);
  }
</script>
<%
	session.removeAttribute("message");
%>
</HTML>